﻿package plugin.viproot
{
    import com.sh.game.consts.*;
    import com.sh.game.global.*;

    public class ShowVip extends Object
    {
        private static var vipdata:Object = ConfigDictionary.data.viplv;

        public function ShowVip()
        {
            return;
        }// end function

        public static function initShow(param1:int, param2:VipShowImg, param3:VipShowImg, param4:VipShowImg) : void
        {
            var _loc_6:int = 0;
            param2.data = new Object();
            param3.data = new Object();
            param4.data = new Object();
            var _loc_5:* = vipdata[param1].expshow;
            if (vipdata[param1].expshow)
            {
                _loc_6 = _loc_5.split("#")[0];
            }
            switch(param1)
            {
                case -1:
                {
                    param4.data = {jyd:int(vipdata[param1].eatexp) + 5};
                    param2.bg = Config.getUrl("assets/images/vip/huis.jpg", ResourceType.NORMAL);
                    param4.bg = Config.getUrl("assets/images/vip/useJYD.jpg", ResourceType.NORMAL);
                    param3.bg = Config.getUrl("assets/images/vip/taf.jpg", ResourceType.NORMAL);
                    break;
                }
                case 0:
                case 1:
                {
                    param3.data = {fsid:vipdata[1].fsid, imgurl:2};
                    param2.bg = Config.getUrl("assets/images/vip/huis.jpg", ResourceType.NORMAL);
                    param3.bg = Config.getUrl("assets/images/vip/fasheng.jpg", ResourceType.NORMAL);
                    param4.bg = Config.getUrl("assets/images/vip/boss.jpg", ResourceType.NORMAL);
                    break;
                }
                case 2:
                {
                    param2.data = {exp:_loc_6 * 100};
                    param3.data = {fsid:vipdata[param1].fsid, imgurl:3};
                    param4.data = {jyd:int(vipdata[param1].eatexp) + 5};
                    param2.bg = Config.getUrl("assets/images/vip/exp.jpg", ResourceType.NORMAL);
                    param3.bg = Config.getUrl("assets/images/vip/fasheng.jpg", ResourceType.NORMAL);
                    param4.bg = Config.getUrl("assets/images/vip/useJYD.jpg", ResourceType.NORMAL);
                    break;
                }
                case 3:
                {
                    param2.data = {count:vipdata[param1].reborn};
                    param3.data = {fsid:vipdata[param1].fsid, imgurl:4};
                    param4.data = {jyd:int(vipdata[param1].eatexp) + 5};
                    param2.bg = Config.getUrl("assets/images/vip/fuhuo.jpg", ResourceType.NORMAL);
                    param3.bg = Config.getUrl("assets/images/vip/fasheng.jpg", ResourceType.NORMAL);
                    param4.bg = Config.getUrl("assets/images/vip/useJYD.jpg", ResourceType.NORMAL);
                    break;
                }
                case 4:
                {
                    param2.data = {exp:_loc_6 * 100};
                    param3.data = {att:vipdata[param1].attadd};
                    param4.data = {jyd:int(vipdata[param1].eatexp) + 5};
                    param2.bg = Config.getUrl("assets/images/vip/exp.jpg", ResourceType.NORMAL);
                    param3.bg = Config.getUrl("assets/images/vip/attJC.jpg", ResourceType.NORMAL);
                    param4.bg = Config.getUrl("assets/images/vip/useJYD.jpg", ResourceType.NORMAL);
                    break;
                }
                case 5:
                {
                    param2.data = {att:vipdata[param1].attadd};
                    param3.data = {count:vipdata[param1].worshipgirl};
                    param4.data = {jyd:int(vipdata[param1].eatexp) + 5};
                    param2.bg = Config.getUrl("assets/images/vip/attJC.jpg", ResourceType.NORMAL);
                    param3.bg = Config.getUrl("assets/images/vip/mobai.jpg", ResourceType.NORMAL);
                    param4.bg = Config.getUrl("assets/images/vip/useJYD.jpg", ResourceType.NORMAL);
                    break;
                }
                case 6:
                {
                    param2.data = {count:vipdata[param1].reborn};
                    param3.data = {att:vipdata[param1].attadd};
                    param4.data = {count:vipdata[param1].worshipgirl};
                    param2.bg = Config.getUrl("assets/images/vip/fuhuo.jpg", ResourceType.NORMAL);
                    param3.bg = Config.getUrl("assets/images/vip/attJC.jpg", ResourceType.NORMAL);
                    param4.bg = Config.getUrl("assets/images/vip/mobai.jpg", ResourceType.NORMAL);
                    break;
                }
                case 7:
                {
                    param2.data = {count:vipdata[param1].reborn};
                    param3.data = {att:vipdata[param1].attadd};
                    param4.data = {jyd:"无限"};
                    param2.bg = Config.getUrl("assets/images/vip/fuhuo.jpg", ResourceType.NORMAL);
                    param3.bg = Config.getUrl("assets/images/vip/attJC.jpg", ResourceType.NORMAL);
                    param4.bg = Config.getUrl("assets/images/vip/useJYD.jpg", ResourceType.NORMAL);
                    break;
                }
                case 8:
                {
                    param2.data = {count:vipdata[param1].reborn};
                    param3.data = {att:vipdata[param1].attadd};
                    param4.data = {count:vipdata[param1].worshipgirl};
                    param2.bg = Config.getUrl("assets/images/vip/fuhuo.jpg", ResourceType.NORMAL);
                    param3.bg = Config.getUrl("assets/images/vip/attJC.jpg", ResourceType.NORMAL);
                    param4.bg = Config.getUrl("assets/images/vip/mobai.jpg", ResourceType.NORMAL);
                    break;
                }
                case 9:
                {
                    param2.data = {exp:_loc_6 * 100};
                    param3.data = {att:vipdata[param1].attadd};
                    param4.data = {count:vipdata[param1].worshipgirl};
                    param2.bg = Config.getUrl("assets/images/vip/exp.jpg", ResourceType.NORMAL);
                    param3.bg = Config.getUrl("assets/images/vip/attJC.jpg", ResourceType.NORMAL);
                    param4.bg = Config.getUrl("assets/images/vip/mobai.jpg", ResourceType.NORMAL);
                    break;
                }
                case 10:
                {
                    param2.data = {count:vipdata[param1].reborn};
                    param3.data = {att:vipdata[param1].attadd};
                    param4.data = {count:vipdata[param1].worshipgirl};
                    param2.bg = Config.getUrl("assets/images/vip/fuhuo.jpg", ResourceType.NORMAL);
                    param3.bg = Config.getUrl("assets/images/vip/attJC.jpg", ResourceType.NORMAL);
                    param4.bg = Config.getUrl("assets/images/vip/mobai.jpg", ResourceType.NORMAL);
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

    }
}
